<%-- 
    Document   : addProduct
    Created on : Sep 30, 2013, 4:16:24 PM
    Author     : DH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add Product Page</title>
    </head>
    <body>
        <h1>Add Product</h1>
        <form action="ProductProcessServlet">
            Product Name: <input type="text" name="txtProductName" value="" /><br/>
            Description: <input type="text" name="txtDescription" value="" /><br/>
            Category:
            <select name="ddCategory">
                <c:forEach var="cate" items="${CATE}">
                    <option value="${cate.id}">${cate.categoryDescription}</option>
                </c:forEach>
            </select> <br/>
            Price: <input type="text" name="txtPrice" value="" /><br/>
            Image: <input type="text" name="txtImagePath" value="" /><br/>
            <input type="submit" value="Add" name="action" />
            <input type="reset" value="Clear" />
        </form>
    </body>
</html>
